package controllers;

import java.io.File;
import java.util.List;

import models.User;
import play.db.ebean.Model;
import play.libs.Json;
import play.mvc.*;
import static play.data.Form.*;

import java.util.*;

import models.*;
import views.html.*;


@Security.Authenticated(Secured.class)
public class dahsboard extends Controller {
	
	public static Result index() {

		List<User> users = new Model.Finder(String.class, User.class).all();
		response().setContentType("application/x-download");  
		response().setHeader("Content-disposition","attachment; filename=eZatox.mp3");
		
		return ok(new File("/home/gravoo/workspace/eZatox.mp3"));
		//return ok(Json.toJson(users));
		//return ok(index.render(Json.toJson(users)));
	}

}
